package com.leinao.constant;

/**
 * @description: 团队模块错误码
 * @author: 曹阳
 * @date: 2019-04-23 18:05
 */
public enum TeamErrorEnum {
    TEAM_NAMEEXIST(20001, "team name already exist"),  // 团队名称已存在

    TEAM_ADMINLIMIT(20002, "admin is limited"),   // 管理员已创建过团队

    TEAM_MEMBERLIMIT(20003, "member is limited"),   // 加入团队数量超过限制

    TEAM_MEMBEREXIST(20004, "member already exist"),   // 团队成员已存在

    NOT_A_MEMBER(20005, "user is not a member of this team"),   // 该用户不在本组内

    TEAMID_IS_EMPTY(20006, "teamId can not be empty"),   // 该用户不在本组内

    TEAM_IS_NOT_CREATED(20008, "team is not created"),   // 团队未创建

    TEAMURL_EXPIRED(20009, "team url expired"),   // 邀请连接过期

    TEAMURL_PARAMETER_ERROR(20010, "team url parameter error"),   // 邀请链接参数错误

    TAC_AFHLAHFJASL(30001,"The maximum number of words is 500"),//字数最大为500

    IS_NOT_LEADER(20007,"user is not the leader of this team"),//是否是队长

    INTRODUCTION_IS_TOO_MANY(20011,"user is not the leader of this team"),//简介过长
    REDIS_CONNECTION_FAILED(20012,"RP connection failed"),//网络连接失败，请稍后再试
    CONNECTION_FAILED(20013,"connection failed");//网络连接失败，请稍后再试

    private Integer seq;

    private String desc;

    TeamErrorEnum(Integer seq, String desc) {
        this.seq = seq;
        this.desc = desc;
    }

    public int getSeq() {
        return seq;
    }

    public String getDesc() {
        return desc;
    }
}
